package com.xinyue.authorization.dao;

import com.xinyue.authorization.bean.UserRole;
import java.util.List;
import com.xinyue.authorization.bean.User;
import com.xinyue.authorization.bean.Role;

public interface UserRoleDao {
	//默认方法
	public void save(UserRole entity);
	public Integer deleteById(int id);
	public List<User> queryUserByRoleId(int roleId);
	public List<Role> queryRoleByUserId(int userId);
	public Integer deleteByUserId(int userId);
	public Integer deleteByRoleId(int roleId);
}